" ------------------------------
" fuzzy_finder
" ------------------------------
if has('patch-7.4.1304')
    PlugAdd 'junegunn/fzf.vim'
    if WINDOWS()
        PlugAdd 'junegunn/fzf', {'do': 'Powershell ./install.ps1 --all', 'dir': expand('$HOME\\AppData\\Local\\fzf')}
    else
        PlugAdd 'junegunn/fzf', {'do': './install --all', 'dir': expand('~/.local/fzf')}
    endif
endif
if g:python_version > 2 && !Require('noleaderf') && !Require('no-leaderf')
    PlugAdd 'Yggdroot/LeaderF', {'do': ':LeaderfInstallCExtension'}
    if !Planned('coc.nvim') || Planned('coc.nvim') && !has('nvim')
        PlugAdd 'tamago324/LeaderF-filer'
    endif
endif
" ------------------------------
" devicons
" ------------------------------
if v:version >= 800
    if has('nvim')
        PlugAdd 'nvim-tree/nvim-web-devicons'
    else
        PlugAdd 'ryanoasis/vim-devicons'
    endif
endif
" ------------------------------
" project
" ------------------------------
if has('patch-8.0.1832') && exists("v:null") || has('nvim')
    PlugAdd 'leafOfTree/vim-project'
endif
" ------------------------------
" git
" ------------------------------
if executable('git') && v:version >= 800 && g:git_version >= 1.85
    PlugAdd 'tpope/vim-fugitive'
    if has('nvim-0.7') || has('lua') && Require('flog')
        PlugAdd 'rbong/vim-flog'
    endif
    if g:has_popup_floating && UNIX()
        PlugAdd 'APZelos/blamer.nvim'
    endif
endif
